<?php


namespace app\api\controller;

use support\controller\Base;
use support\Validator;

abstract class BaseController extends Base
{
    protected function validate($data, $rule, $msg = [], $attr = [])
    {
        return Validator::getInstance()->validate($data, $rule, $msg, $attr);
    }
}
